#打印9层菱形 
for i in range(-4,5):
    if i < 1:
        print(' ' * (-i) + '*' * ((i+4)*2+1))
    else:
        print(' ' * i + '*' * (2*(4-i)+1))
